import * as type from '../action-type.js'
let initState = {
        user: null,
        success: null,
        error: null
}

export default function (state = initState, action) {
    switch (action.type) {
        case type.SET_SESSION:
            return {session: action.session};
            break;
        default:
            return state;
    }
}
